package lwf.web.struts.action.form;

import java.util.List;

import net.lwf.hibernate.entity.lookup.Lookup;
import net.lwf.web.struts.action.UserDataHelper;

import org.apache.struts.action.ActionForm;

public class LoginActionForm extends ActionForm {
	
	private static final long serialVersionUID = 1L;
	
	private String userid;
	private String password;
	private String selectedGrade;
	private List<Lookup> grades = UserDataHelper.getUserGrades();
	
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSelectedGrade() {
		return selectedGrade;
	}
	public void setSelectedGrade(String selectedGrade) {
		this.selectedGrade = selectedGrade;
	}
	public List<Lookup> getGrades() {
		return grades;
	}
	public void setGrades(List<Lookup> grades) {
		this.grades = grades;
	}
	
	
	
/*	
	<bean:define id="action" name="loginform" property="formSubmitAction" type="java.lang.String" />
	public String getFormSubmitAction() {
		return "return checkSubmit(event, '/login.do?action=login')";
	}
*/
} //LoginActionForm
